n = int(input("请输入数字n："))

# 正三角形
"""
row = 1
while row <= n:
    print("*" * row)
    row += 1
"""

# 倒三角形
i = n
while i >= 1:
    print("*" * i)
    i -= 1
